import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    component: Home
  },
  {
    path: "/home",
    component: Home
  }
];

const router = new VueRouter({
  mode: "history",   // hash
  base: '/',
  routes
});

export default router;